<div class="r0 p0 col-xs-12" ng-controller="userModuleListCtrl">
    <div class="col-xs-12 main-nav">
        <div class="btn-group btn-group-sm r3 fl mr10">
            <a type="button" class="btn btn-default" onclick="history.back(-1);"><i
                    class="iconfont mt-3">&#xe605;&nbsp;</i>后退</a>
            <button class="btn btn-sm cursor-not btn-main"><i class="iconfont mt-3">&#xe613;&nbsp;</i>模块列表</button>

            <a type="button" class="btn btn-default" id="refresh" ng-click="getData(list.page.currentPage)"><i
                    class="iconfont mt-3">&#xe611;&nbsp;</i>刷新</a>
            <a type="button" class="btn btn-default btn-sm"
               ng-click="detail('新增模块',700,'user/module/detail.do?id=NULL&projectId='+$stateParams.projectId)">
                <i class="iconfont mt-3">&#xe604;</i>&nbsp;新增模块
            </a>
        </div>

        <div class="form-group w200 fl mb0">
            <label class="sr-only">名称</label>
            <div class="input-group btn-group-xs">
                <div class="input-group-addon main-bg CFFF b0 f12">名称</div>
                <input type="text" class="form-control input-sm dis-in-blo w120 bl0" placeholder="模块名称"
                       ng-model="$stateParams.name">
            </div>
        </div>

        <button type="button" class="btn btn-adorn btn-sm fl ml10" ng-click="getData(1);">
            <i class="iconfont mt-3">&#xe610;</i>&nbsp;查询
        </button>
    </div>

    <div class="col-xs-12 p10 mt50">
        <div class="r5 BGFFF p10">
            <table class="table table-hover table-striped">
                <thead>
                <tr class="f14 C000 fw500">
                    <td>名称</td>
                    <td class="w200">Url前缀</td>
                    <td class="w200">创建时间</td>
                    <td class="w450">操作</td>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="item in list" class="cursor"
                    ng-click="go('user/interface/list?menu_a=menu-project&projectName=' + item.projectName + '&projectId=' + item.projectId + '&moduleId=' + item.id + '&moduleName=' + item.name)">
                    <td>{{item.name}}</td>
                    <td>{{item.url}}</td>
                    <td>{{item.createTimeStr}}</td>
                    <td class="f12">
                        <a class="mr10 cursor text-primary" ng-if="showOperation('PROJECT',item.projectId)"
                           ng-click="detail('编辑【'+item.name+'】',700,'user/module/detail.do?id='+item.id);stopPropagation($event);">
                            <i class="iconfont f12">&#xe618;修改</i>
                        </a>

                        <a class="mr10 cursor text-primary"
                           ng-href="visitor/interface/download/pdf.do?moduleId={{item.id}}&pdf=true"
                           ng-click="stopPropagation($event);">
                            <i class="iconfont f12">&#xe61e; 下载PDF</i>
                        </a>
                        <a class="mr10 cursor text-primary"
                           ng-href="visitor/interface/download/pdf.do?moduleId={{item.id}}&pdf=false"
                           ng-click="stopPropagation($event);">
                            <i class="iconfont f12">&#xe637; 下载WORD</i>
                        </a>
                        <a class="f12 text-danger mr10 cursor" title="删除"
                           ng-if="showOperation('PROJECT',item.projectId)"
                           ng-click="del('user/module/delete.do?id='+item.id,item.name);stopPropagation($event);">
                            <i class="iconfont f12">&#xe60e;删除</i>
                        </a>

                        <a class="mr10 cursor text-primary"
                           ng-href="#/user/log/list?identy={{item.id}}&menu_a=menu-project&projectName={{$stateParams.projectName}}&projectId={{$stateParams.projectId}}"
                           ng-click="stopPropagation($event);">
                            <i class="iconfont">&#xe62b;&nbsp;</i>日志
                        </a>
                        <a class="mr10 cursor text-primary" ng-if="item.hasStaticize"
                           ng-href="static/{{item.projectId}}/{{item.id}}-articleList--1.html" target="_blank"
                           ng-click="stopPropagation($event);">
                            <i class="iconfont f12">&#xe63a;静态化地址</i>
                        </a>
                    </td>
                </tr>
                </tbody>
            </table>
            <div ui-view="page"></div>
        </div>
    </div>
</div>
<div class="cb"></div>

